<cfcomponent output="false">
	
	<!--- --->
	
	<cffunction name="getURL" access="public" output="false" returntype="string">
		<cfargument name="withArgs" required="false" default="false" />
		
		<cfset var result = cgi.SCRIPT_NAME />
		<cfif arguments.withArgs>
			<cfset result = result & '?' & cgi.query_string />
		</cfif>
		
		<cfreturn result />
		
	</cffunction>
	
	<!--- --->
	
	<cffunction name="getReferrerURL" access="public" output="false" returntype="string">
		<!--- not working, needs to account for no referrer --->
		<cfset var local = {} />
		<cfset local.result = cgi.http_referer />
		<cfset local.offset = 7 />
		
		<cfif findNoCase(result,"https:")>
			<cfset local.offset = 8 />
		</cfif>
		
		<cfset local.offset = local.offset + len(cgi.http_host) />
		
		<cfset local.result = right(local.result,len(local.result) - local.offset) />
		
		<cfreturn local.result />
		
	</cffunction>
	
	<!--- --->
	
</cfcomponent>